package com.xyz.pojo;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Data
@NoArgsConstructor
@DynamicUpdate
@Table(name = "order_detail")
public class OrderDetail {

	@Id
	@Column(name = "detail_id")
	private String detailId;
	/**
	 * 订单ID
	 */
	@Column(name = "order_id")
	private String orderId;

	/**
	 * 商品ID
	 */
	@Column(name = "product_id")
	private String productId;

	/**
	 * 商品名称
	 */
	@Column(name = "product_name")
	private String productName;

	/**
	 * 商品价格
	 */
	@Column(name = "product_price")
	private BigDecimal productPrice;

	/**
	 * 商品数量
	 */
	@Column(name = "product_quantity")
	private Integer productQuantity;

	/**
	 * 商品小图片
	 */
	@Column(name = "product_icon")
	private String productIcon;
	
	@Column(name = "create_time")
	private Date createTime = new Date();
	
	@Column(name = "update_time")
	private Date updateTime = new Date();

}